{include file="Index/header" /}
 
<body>
<div class="formbody">
<div class="formtitle"><span>留言列表</span></div> 
	<form action="{:url('Message/index')}" method="post">
		<ul class="seachform">
			<li><label>姓名</label>
				<input name="names" type="text" class="scinput" value="{$names}"/>&nbsp;&nbsp; 
			</li>
			<li><label>类型</label>
				<select name="type" class="form-select">
					<option value="0">全部</option>
					<option {if $type=="1"} selected {/if} value="1">在线留言</option>
					<option {if $type=="2"} selected {/if}  value="2">预约鉴定</option> 
				</select>
			</li>
			
			<li><label>处理状态</label>
				<select name="status" class="form-select">
					<option value="0">--全部--</option>
					<option {if $status=="1"} selected {/if}  value="1">已处理</option>
					<option {if $status=="2"} selected {/if}  value="2">未处理</option> 
				</select>
				
			</li>
			
			<li><label>&nbsp;</label>
				<input name="query" type="submit" class="scbtn" value="查询" />
			</li>
		</ul>
	</form>

	<table class="tablelist" >
		<thead>
			<tr>
				<th>编号</th>
				<th>姓名</th>
				<th>联系电话</th> 
				<th width="480px">内容</th>  
				<th>类型</th>
				<th>处理状态</th>
				<th>时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		 	{volist name="listArr" id="vo" key="k" } 
			<tr>
				<td>{$vo.id}</td>
				<td>{$vo.names}</td>
				<td>{$vo.telephone}</td> 
				<td>{$vo.content}</td>
				<td>
					{if $vo[type]=="1"}
						 在线留言
					{else /}
						 预约鉴定 
					{/if}
				</td>
				<td>
					{if $vo[status]=="1"}
						<font color=green>已处理</font>
					{else /}
						<font color=red>未处理</font> 
					{/if}
					
				</td> 
				<td>{:date("Y-m-d",$vo[on_time]);}</td>
				<td>
					{if $vo[status]=="2"}
					<a href="{:url('Message/reset', array('id'=>$vo[id]))}" class="tablelink">设为已处理</a>
					{/if}
				</td> 
			 
			</tr>
		 	{/volist}
		</tbody>
	</table>
	<div class="page">
					{$pages}
	</div>
 
</div>

{include file="Index/footer" /}